From: Florian Müllner Date: Tue, 7 Jul 2020 11:23:50 +0000 (+0200) Subject: workspacesView: Decouple syncing geometry from updating views X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~151 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=30ff76272e38089cfe42703c6f1b622687b897e5;p=gnome-shell.git workspacesView: Decouple syncing geometry from updating views This gives us more control over when the geometry is synced. We will soon use that to keep the primary view at the work area geometry while fading to the overview. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index ea5156836..0096b872b 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -555,6 +555,7 @@ class WorkspacesDisplay extends St.Widget { animationType = AnimationType.ZOOM; this._workspacesViews[i].animateToOverview(animationType); } + this._syncWorkspacesActualGeometry(); } this._restackedNotifyId = @@ -614,6 +615,7 @@ class WorkspacesDisplay extends St.Widget { return; this._updateWorkspacesViews(); + this._syncWorkspacesActualGeometry(); } _updateWorkspacesViews() { @@ -633,9 +635,6 @@ class WorkspacesDisplay extends St.Widget { this._workspacesViews.push(view); Main.layoutManager.overviewGroup.add_actor(view); } - - if (this._actualGeometry) - this._syncWorkspacesActualGeometry(); } _getMonitorIndexForEvent(event) {